const zh = {
    anlin: {
        avatar: 'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png'
    }
}


export default (data) => {
    const arr = data.split('.');
    let backData;
    switch (arr.length) {
        case 0:
            backData = '';
            break;
        case 1:
            backData = zh[arr[0]];
            break;
        case 2:
            backData = zh[arr[0]][arr[1]];
            break;
        case 3:
            backData = zh[arr[0]][arr[1]][arr[2]];
            break;
    }
    return backData
}